package com.jsy.mini12306.ticketsales.entity;

import com.jsy.mini12306.common.entity.TrainPassStation;
import lombok.*;

import java.io.Serializable;

/**
 * @author: SongyangJi
 * @description:
 * @since: 2021/9/1
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class StationInLine implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 车次id(自增)
     */
    private Integer trainId;
    /**
     * 车次名（如：G123）
     */
    private String trainName;
    /**
     * 当前列车状态
     */
    private Status status;
    /**
     * 起点站名
     */
    private String startStationName;
    /**
     * 终点站名
     */
    private String endStationName;


    private TrainPassStation trainPassStation;


    public static enum Status {
        WAIT("正在候车"),
        CHECK("正在检票"),
        STOP_CHECK("停止检票"),
        LEAVE("已发车"),
        OTHER("其他");

        @Getter
        String meaning;

        Status(String meaning) {
            this.meaning = meaning;
        }
    }
}
